GtkAboutDialog: Support https in links
authorMatthias Clasen <mclasen@redhat.com>
Fri, 29 Aug 2014 04:51:39 +0000 (00:51 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 29 Aug 2014 04:51:39 +0000 (00:51 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=680067

gtk/gtkaboutdialog.c

index b76742e0ecb44a005c5e7564552bb8887cf4690c..5729d46474475dada305d39035eb058a47d04499 100644 (file)
@@ -2081,6 +2081,9 @@ text_buffer_new (GtkAboutDialog  *about,
           q1 = strchr (q0, '<');
           q2 = q1 ? strchr (q1, '>') : NULL;
           r1 = strstr (q0, "http://");
+          r2 = strstr (q0, "https://");
+          if (!r1 || (r1 && r2 && r2 < r1))
+            r1 = r2;
           if (r1)
             {
               r2 = strpbrk (r1, " \n\t>");
@@ -2206,6 +2209,9 @@ add_credits_section (GtkAboutDialog *about,
           q1 = strchr (q0, '<');
           q2 = q1 ? strchr (q1, '>') : NULL;
           r1 = strstr (q0, "http://");
+          r2 = strstr (q0, "https://");
+          if (!r1 || (r1 && r2 && r2 < r1))
+            r1 = r2;
           if (r1)
             {
               r2 = strpbrk (r1, " \n\t");